<%
var containerParam = {
	title: '我的从者',
	currentMenu: 'myServant',
	jsArray: [ctxPath + '/js/myServant/list.js'],
	breadcrumbMap: {
		'首页': ctxPath + '/',
		'我的从者': null
	}
};
layout('/common/_website_container.html', containerParam){
%>
<div class="layui-card">
	<div class="layui-form layui-card-header padding-vertical-15 height-auto">
		<div class="layui-form-item margin-bottom-0">
			<#searchinput label="名称" name="name"/>
			<#searchselect label="职介" name="classId" itemValue="id" itemDesc="name" items="${classes}"/>
			<#searchselect label="星级" name="star" itemValue="value" itemDesc="desc" items="${@CollectionUtils.generateSeries([0,'★ 0'],[1,'★ 1'],[2,'★ 2'],[3,'★ 3'],[4,'★ 4'],[5,'★ 5'])}"/>
			<#searchselect label="cost" name="cost" itemValue="value" itemDesc="value" items="${@CollectionUtils.generateSeries(0,3,4,7,12,16)}"/>
			<#searchselect label="阵营" name="faction" itemValue="value" itemDesc="desc" items="${@ServantFaction.values()}"/>
			<#searchselect label="获取方式" name="get" itemValue="value" itemDesc="desc" items="${@ServantGet.values()}"/>
			<#searchselect label="宝具" name="npColorCard" itemValue="value" itemDesc="desc" items="${@ColorCard.values()}"/>
			<#searchselect label="宝具类型" name="npType" itemValue="value" itemDesc="desc" items="${@ServantNpType.values()}"/>
			<#searchselect label="指令卡" name="cards" itemValue="value" itemDesc="desc" items="${@ServantCards.values()}"/>
			<#searchselect label="性别" name="sex" itemValue="value" itemDesc="desc" items="${@Sex.values()}"/>
			<#searchselect label="特性" name="trait" itemValue="value" itemDesc="desc" items="${@ServantTrait.values()}"/>
			<#searchselect label="声优" name="cvId" itemValue="id" itemDesc="name" items="${cvs}"/>
			<#searchselect label="画师" name="painterId" itemValue="id" itemDesc="name" items="${painters}"/>
			<div class="layui-inline">
				<label class="layui-form-label">属性</label>
				<div class="layui-input-inline">
					<select name="propA" lay-search>
						<option value=""></option>
						<% for (item in @ServantPropA.values()) { %>
						<option value="${item.value}">${item.desc}</option>
						<% } %>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="propB" lay-search>
						<option value=""></option>
						<% for (item in @ServantPropB.values()) { %>
						<option value="${item.value}">${item.desc}</option>
						<% } %>
					</select>
				</div>
			</div>
			<#searchsubmit/>
		</div>
	</div>
	<div class="layui-card-body">
		<table id="table"></table>
	</div>
</div>

<!-- 底部栏 start -->
<% layout('/common/_website_footer.html'){} %>
<!-- 底部栏 end -->

<script id="tableToolbar" type="text/html">
	<div class="layui-btn-container">
		<button type="button" class="layui-btn" lay-event="add">添加</button>
		<button type="button" class="layui-btn" lay-event="delete">删除</button>
	</div>
</script>
<script id="rowToolbar" type="text/html">
	<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">
		<i class="layui-icon layui-icon-edit"></i>编辑
	</a>
	<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">
		<i class="layui-icon layui-icon-delete"></i>删除
	</a>
	{{# if(d.getDate) { }}
	<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="bond">
		<i class="icon icon-history"></i>历史羁绊
	</a>
	{{# } }}
</script>
<% } %>
